package microframe.manager
{
	import microframe.event.EventType;
	import microframe.event.MicroEvent;
	import microframe.event.MicroEventObserver;
	import microframe.model.AutoRunData;

	/**
	 * @author winnie
	 */	
	public class AutoRunManager
	{
		
		private static var _autoRunList : Vector.<AutoRunData> = new Vector.<AutoRunData>();
		
		/**
		 * @return 실제오토런에 사용되는 리스트. 
		 */		
		public static function get autuRunList():Vector.<AutoRunData>
		{
			if( _autoRunList.length == 0 )
			{
//				_autoRunList.push( new AutoRunData( ContentsTypeManager.MAIN, 15000, mainIntro ) );
			}
			
			return _autoRunList;
			
			
			function mainIntro():void
			{
				MicroEventObserver.instance.dispatchEvent( new MicroEvent( EventType.MAIN_MOVIE_CONTROL, -1 ) );
			}
			
			function main0():void
			{
				MicroEventObserver.instance.dispatchEvent( new MicroEvent( EventType.MAIN_MOVIE_CONTROL, 0 ) );
			}
			
			function main1():void
			{
				MicroEventObserver.instance.dispatchEvent( new MicroEvent( EventType.MAIN_MOVIE_CONTROL, 1 ) );
			}
			
			function main2():void
			{
				MicroEventObserver.instance.dispatchEvent( new MicroEvent( EventType.MAIN_MOVIE_CONTROL, 2 ) );
			}
			
			function main3():void
			{
				MicroEventObserver.instance.dispatchEvent( new MicroEvent( EventType.MAIN_MOVIE_CONTROL, 3 ) );
			}
		}
		
		
		
		public function AutoRunManager()
		{
		}
	}
}